import { createApp } from "vue";
import App from "./App.vue";
import router from "@/router/index";
import store from "@/store";
import "element-plus/dist/index.css";
import NProgress from "nprogress";
import "@/router/permission";
import "nprogress/nprogress.css";
import "@/style/index.scss";
import * as ElIconModules from "@element-plus/icons-vue";
NProgress.configure({ showSpinner: false });
const app = createApp(App);
// 统一注册ElementUI-plus Icon图标
for (const iconName in ElIconModules) {
  if (Reflect.has(ElIconModules, iconName)) {
    const item = ElIconModules[iconName];
    app.component(iconName, item);
  }
}
app.use(router);
app.use(store);
app.mount("#app");
